//
//  SetButton.m
//  FreeTrip
//
//  Created by 邓芮 on 15/11/29.
//  Copyright © 2015年 邓芮. All rights reserved.
//

#import "SetButton.h"

@implementation SetButton

- (void)setFrame:(CGRect)frame
{
    [super setFrame:frame];
    CGFloat height = 30 *KScreenWidth / 320;
    self.title = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, KScreenWidth, height)];
    self.title.textAlignment = NSTextAlignmentCenter;
    self.title.textColor = [UIColor grayColor];
    
    [self addSubview:self.title];
    
    
    self.stateLabel = [[UILabel alloc]initWithFrame:CGRectMake(0,0,KScreenWidth * 0.9,height)];
    self.stateLabel.center = CGPointMake(self.title.center.x, self.title.y + self.title.height*1.2);
    //self.stateLabel.text = @"关闭";
    self.stateLabel.textAlignment = NSTextAlignmentCenter;
    self.stateLabel.alpha = 0.4;
   // self.line.backgroundColor = [UIColor blackColor];
    [self addSubview:self.stateLabel];
    
    
}















@end
